home *** CD-ROM | disk | FTP | other *** search
- 5 'Public domain program to add linefeeds to downloaded files.
- 6 'Download files without LF's overwirte the same line when listed.
- 7 'Written by Don Withrow, 1982
- 10 CLS:LOCATE 10,1,1
- 20 INPUT"Filename that needs linefeeds (without drive)";FILEONE$
- 30 PRINT
- 35 INPUT"Drive file is on (without colon)";DRIVE$:DRIVE$=DRIVE$+":"
- 40 OPEN DRIVE$+FILEONE$ FOR INPUT AS #1
- 50 OPEN DRIVE$+"temp" FOR OUTPUT AS #2
- 60 IF EOF(1) THEN 90 ELSE LINE INPUT#1, THELIN$
- 70 PRINT #2, THELIN$
- 80 GOTO 60
- 90 CLOSE
- 91 KILL DRIVE$+FILEONE$
- 92 NAME DRIVE$+"temp" AS DRIVE$+FILEONE$
- 95 PRINT
- 97 PRINT "File ";FILEONE$;" now has linefeeds after carriage returns."
- 98 PRINT:PRINT
- 100 END